<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<%@ page import="java.util.Date" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>首页</title>
    <script>
        window.addEventListener("load", function () {
            alert("OK");
            window.addEventListener("keydown",function (e) {
                console.log(e);
            });

            window.addEventListener("keypress",function (e) {
                console.log(e);
            });

            window.addEventListener("keyup",function (e) {
                console.log(e);
            });
        });
    </script>
</head>
<body>
现在时间：<%=new Date()%>
<s:message code="user.name"></s:message>
</body>
</html>
